<template>
    <div class="header">
        <div>烟台</div>
        <div class="search">
            <input type="text" placeholder="鱼乐酸菜鱼(外卖满20减10)">
            <div>搜索</div>
        </div>
        <div>
            <van-icon name="add-o" dot size="22"/>
        </div>
    </div>
</template>

<script>
    export default {
        
    }
</script>

<style lang="scss" scoped>
*,*:before,*:after{
    box-sizing: border-box;
}
$theme-color:#ffd101;
.header {
    box-sizing: border-box;
    padding: 10px 0;
    background-color: $theme-color;
    display: flex;
    justify-content: space-between;
    align-items: center;
    >div {
        font-family: '黑体';
        font-weight: bold;
        &:first-child {
            padding:0 15px;
        }
        &.search {
            background-color: #fff;
            display: flex;
            align-items: center;
            font-size: .9em;
            padding-right: 10px;
            border-radius: 5px;
            flex: 1;
            font-family: '微软雅黑';
            font-weight: normal;
            >input {
                padding:5px 15px;
                border: none;
                border-radius: 5px;
                flex: 1;
            }
            >div {
                border-left: 1px solid #f3e6d2;
                padding-left: 10px;
            }
        }
        &:nth-child(3){
            padding: 0 15px;
        }
    }
}
</style>